From 3f429eb1978318a169009e34af7ef0f5a5c5f1c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Thu, 15 Jun 2017 10:28:58 +0200 Subject: [PATCH] entry: get_layout_location coords are already content relative --- gtk/gtkentry.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index a8fa3dd1f4..13e63d0b09 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -7689,15 +7689,7 @@ gtk_entry_get_layout_offsets (GtkEntry *entry, gtk_widget_get_allocation (GTK_WIDGET (entry), &allocation); gtk_entry_get_text_allocation (entry, &text_allocation); - /* this gets coords relative to text area */ get_layout_position (entry, x, y); - - /* convert to widget coords */ - if (x) - *x += text_allocation.x - allocation.x; - - if (y) - *y += text_allocation.y - allocation.y; } -- 2.30.2